import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  { path: "/", component: () => import("../views/HomePage.vue") },
  { path: "/login", component: () => import("../views/Login.vue") },
  {
    path: "/dashboard", component: () => import("../views/dashboard/Dashboard.vue"), children: [
      { path: "/dashboard/article", component: () => import("../views/dashboard/Article.vue") },
      { path: "/dashboard/category", component: () => import("../views/dashboard/Category.vue") }
    ]
  },
  { path: '/detail', component: () => import("../views/Detail.vue") }
]


const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export { router, routes };